home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr44
/
xlib06p1.zip
/
XPAL.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-05
|
2KB
|
81 lines
/*-----------------------------------------------------------------------
;
; XPAL - header file
;
;
;
; ****** XLIB - Mode X graphics library ****************
; ****** ****************
; ****** Written By Themie Gouthas ****************
;
; egg@dstos3.dsto.gov.au
; teg@bart.dsto.gov.au
;
; Terminology & notes:
; VRAM == Video RAM
; SRAM == System RAM
; X coordinates are in pixels unless explicitly stated
;
;----------------------------------------------------------------------*/
#ifndef _XPAL_H_
#define _XPAL_H_
#define PAL_ROTATE_DOWN 0
#define PAL_ROTATE_UP 1
/* FUNCTIONS =========================================================== */
void x_get_pal_raw( /* Read DAC palette into raw buffer */
BYTE * pal,
int num_colrs,
int start_index);
void x_get_pal_struc( /* Read DAC palette into annotated buffer */
BYTE * pal,
int num_colrs,
int start_index);
void x_put_pal_raw( /* Write DAC palette from raw buffer */
BYTE * pal,
int num_colrs,
int start_index);
void x_put_pal_struc( /* Write DAC palette from annotated buffer*/
BYTE * pal);
void x_set_rgb( /* Set the RGB components of a color index*/
BYTE color,
BYTE red_c,
BYTE green_c,
BYTE blue_c);
void x_rot_pal_raw( /* Rotate a raw palette buffer */
BYTE * pal,
int direction,
int num_colrs);
void x_rot_pal_struc( /* Rotate an anottated palette buffer */
BYTE * pal,
int direction);
WORD x_cpcontrast_pal_struc( /* Copy and contrast adjust annotated */
BYTE *src_pal, /* palette buffer */
BYTE *dest_pal,
BYTE Intensity);
void x_transpose_pal_struc( /* Write DAC palette from annotated type*/
BYTE * pal, /* buffer with a new offset */
int StartColor);
void x_put_contrast_pal_struc( /* Write DAC palette from annotated */
BYTE * pal, /* type buffer with specified intensity */
BYTE intensity);
#endif